package cn.com.blackboard.SISIntergrationBiz.controller;

import java.io.IOException;
import java.util.Locale;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.com.blackboard.DataModule4B2.BBDataUtils.LocaleUtil;
  
@Controller
@RequestMapping("/")
public class DefaultController {  
	
	private static final Logger logger = LoggerFactory.getLogger(DefaultController.class);
    
    @RequestMapping("/index")  
    public String getProps(ModelMap modelMap) throws IOException{	
    	logger.info("into index controller");  	
    	Locale locale = LocaleUtil.getLocale();
		modelMap.addAttribute("locale", locale.toString());
		return "index"; 
    }

}  
